package com.zmn.mcc.services.interfaces.role;

import com.zmn.mcc.model.entity.role.McRoleSys;
import com.zmn.mcc.model.entity.staff.McStaffDpermit;
import com.zmn.mcc.model.entity.staff.McStaffDpermitQuery;

import java.util.List;

/**
 * @author heguanghua
 * @since 2020/04/14 14:22
 */
public interface RoleSysService {

    McRoleSys findByKey(Integer roleId, Integer sysId);
    McRoleSys findByKey(McRoleSys roleSys);

    List<Integer> listSysIdByRoleId(Integer roleId);
    List<Integer> listSysIdByStaffId(Integer staffId);

    Integer countByQuery(McRoleSys roleSys);


    Integer insert(McRoleSys roleSys);

    Integer insertByBatch(List<McRoleSys> roleSyses);


    Integer deleteByKey(Integer roleId, Integer sysId);
    Integer deleteByKey(McRoleSys roleSyse);

    Integer deleteByRoleId(Integer roleId);
    Integer deleteBySysId(Integer sysId);
    Integer deleteByQuery(McRoleSys roleSyse);
}
